package com.hxk.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.hxk.pojo.User;

public interface UserMapper {

	@Select("select * from user where id = #{0}")
	User selById(int id);
	
	@Select("select * from user where username = #{username}")
	List<User> selAll(User user);
	
	@Insert("insert into user (username, password, age) values (#{username}, #{password}, #{age})")
	int addUser(User user);
}
